package com.zcy.pmp.domain;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.zcy.auth.domain.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *  员工实体类
 * </p>
 *
 * @author lucker
 * @date 2023/11/28 14:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain = true)
@ApiModel("员工实体类")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("员工ID")
    @Excel(name = "员工ID")
    private Long id;

    @ApiModelProperty("员工姓名")
    @Excel(name = "员工姓名")
    private String username;

    @ApiModelProperty("员工密码")
    @Excel(name = "员工密码")
    private String password;

    @ApiModelProperty("员工邮箱")
    @Excel(name = "员工邮箱")
    private String email;

    @ApiModelProperty("员工头像")
    @Excel(name = "员工头像")
    private String headImage;

    @ApiModelProperty("员工年龄")
    @Excel(name = "员工年龄")
    private Integer age;

    @ApiModelProperty("员工所在部门")
    @ExcelEntity(name = "部门")
    private Department department;

    @ApiModelProperty("员工角色")
    @ExcelEntity(name = "角色")
    private Role role;
}
